#ifndef LIRCTHREAD_H
#define LIRCTHREAD_H

#include <QtCore/QThread>

class keyData
{
	public:
	unsigned long int code;
	int seqNo;
	QString name, device;
	keyData()
	{
		code=seqNo=0;
		name=device="";
	}
	QString str();
};
//Q_DECLARE_METATYPE(keyData);
class lircThread : public QThread
{
	Q_OBJECT
public:
    lircThread();
	int cont;
signals:
	void keyPressed(keyData k);
	void keyRepeated(keyData k);
private:
	struct lirc_config *config;
	void run();
	keyData parseKey(char *data);
};

#endif // LIRCTHREAD_H
